<template>
  <div class="child-page">
    <div> 祖父组件的房子：：{{ house }}</div>
    <button @click="editHouse(1)">消耗</button>
  </div>
</template>
<script setup lang="ts" name="attrsSon">
import { defineProps } from 'vue';

defineProps(['house','editHouse'])

</script>
<style  scoped>
.child-page{
  padding: 20px 50px;
  background: green;
  color: #fff;
}
</style>
